<template>
  <!--<div class="dashboard-editor-container">

    <panel-group @handleSetLineChartData="handleSetLineChartData" />

    <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
      <line-chart :chart-data="lineChartData" />
    </el-row>

    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <raddar-chart />
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <pie-chart />
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <bar-chart />
        </div>
      </el-col>
    </el-row>


  </div>-->
  <!--<div class="demo-image__placeholder">
    <img src="../assets/image/home01.jpg" alt="home">
  </div>-->

  <!--<div class="home_pic">
    <img src="../assets/image/home01.jpg">
  </div>-->
  <div class="home_detail">
    <div class="item">
      <span class="item_title">公司宗旨：</span><br/>
      公司秉承“以人为本、和而不同”的企业发展理念，倾力打造一个融合、
      友爱、进取的发展环境，夯实公司跨越式发展的基础。公司十分重视产品质量和售后服务，一直本着“以人为本、以诚取信、以质取胜、以新争天下”的质量方针和“正正直直做人，踏踏实实做事”的企业精神。
    </div>

    <div class="item"><span class="item_title">主要经营范围：<br/></span>中成药、化学药制剂、抗生素、生化药品、生物制品（除疫苗）、诊断药品、中药材、中药饮片、医疗器械、保健食品、化妆品、卫生用品、日用品、体外诊断试剂
    </div>
    <div class="item"><span class="item_title">联系我们：<br/></span>
      联系人：<br/>
      电&nbsp&nbsp&nbsp&nbsp话：15236063131<br/>
      邮&nbsp&nbsp&nbsp&nbsp箱：517604833@qq.com<br/>
      网&nbsp&nbsp&nbsp&nbsp址：www.dzsyiyao.com<br/>
      地&nbsp&nbsp&nbsp&nbsp址：邓州市工业路005号
    </div>
  </div>

</template>

<script>
  import PanelGroup from './dashboard/PanelGroup'
  import LineChart from './dashboard/LineChart'
  import RaddarChart from './dashboard/RaddarChart'
  import PieChart from './dashboard/PieChart'
  import BarChart from './dashboard/BarChart'

  const lineChartData = {
    newVisitis: {
      expectedData: [100, 120, 161, 134, 105, 160, 165],
      actualData: [120, 82, 91, 154, 162, 140, 145]
    },
    messages: {
      expectedData: [200, 192, 120, 144, 160, 130, 140],
      actualData: [180, 160, 151, 106, 145, 150, 130]
    },
    purchases: {
      expectedData: [80, 100, 121, 104, 105, 90, 100],
      actualData: [120, 90, 100, 138, 142, 130, 130]
    },
    shoppings: {
      expectedData: [130, 140, 141, 142, 145, 150, 160],
      actualData: [120, 82, 91, 154, 162, 140, 130]
    }
  }

  export default {
    name: 'Index',
    components: {
      PanelGroup,
      LineChart,
      RaddarChart,
      PieChart,
      BarChart
    },

    created() {

    },
    data() {
      return {
        lineChartData: lineChartData.newVisitis
      }
    },
    methods: {
      handleSetLineChartData(type) {
        this.lineChartData = lineChartData[type]
      }
    }
  }
</script>

<style>
  /*.home_pic img{ width: auto; height: auto; }
  .home_pic{ float: left; }*/

  .home_detail {
    position:absolute;
    height: 100%;
    padding: 10px 0 0 0;
    background: url("../assets/image/home02.jpg") no-repeat;
    background-size: 100% 100%;
  }

  .item {
    padding: 0px 40px 0px 40px;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 28px;
    height: 140px;
    overflow: hidden;
  }

  .item_title {
    font-weight: bold
  }
</style>
